'use strict'
const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}

/**
 * All configuration item explanations can be find in https://cli.vuejs.org/config/
 * @type {import('@vue/cli-service').ProjectOptions}
 */
module.exports = {
  publicPath: '/',
  outputDir: 'build',
  assetsDir: 'static',
  lintOnSave: process.env.NODE_ENV === 'development',
  productionSourceMap: false,
  devServer: {
    port: 9566,
    open: false,
    overlay: {
      warnings: false,
      errors: true
    }
  },
  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    name: 'vue2-openlayer6-shapefile',
    resolve: { alias: { '@': resolve('src') }}
  }
}
